package org.cuatrovientos.cuadrado;

public class Square {

	
	private char character;
	
	/**
	 * default constructor
	 * 
	 */
	
	public Square(){
		character='#';
	
	}
	
/**
 * constructor with character argument
 * 
 * @param character
 */
	public Square( char character){
		this.character=character;
				
	}
	
	public void setCaracter (char character){
		this.character=character;
		
		
	}
	
	private String generate (int size){
	String retorno="";
	
	
	
		for (int i=0;i<size;i++){
			for(int j=0;j<size;j++){
			
			retorno=retorno+this.character;
			
			
			}
		retorno=retorno+"\n";
		}
	
	return retorno;
	}
	public void create (int size){
		String square=generate(size);
		System.out.println(generate(square));
		
	
	
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Square mySquare= new Square();
		Square otherSquare= new Square('x');
		

	}
	
	
	
}
